package com.billing.service;

import java.util.List;

import com.billing.model.entity.TOrganization;
import com.billing.model.entity.TRoleMembers;

public interface OrganizationService {

	/**
	 * 根据id获取企业信息
	 * @param id
	 * @return
	 */
	public TOrganization getTOrganizationByid(int id);
	/**
	 * 修改企业信息
	 * @param organization
	 * @return
	 */
	public int updateTOrganization(TOrganization organization);
	
	/**
	 * 新增企业
	 * @param organization
	 * @return
	 */
	public int saveTOraganization(TOrganization organization);
	/**
	 * 保存rolemembers
	 * @param roleMembers
	 */
	public int insertMembers(TRoleMembers roleMembers);
	/**
	 * 根据登录名获取企业信息
	 * @param username
	 * @return
	 */
	public List<TOrganization> getTOrganizationByName(String name,int status,String username,int pageSize,int currentPage);
	/**
	 * 查询企业条数
	 * @param username
	 * @return
	 */
	public int getTORganizationNum(String username);
}
